package com.xbongbong.pro.formexplain.pojo.dto;

import com.xbongbong.paas.domain.entity.PaasFormExplainEntity;
import com.xbongbong.paas.domain.entity.ext.PaasFormDataEntityExt;
import com.xbongbong.paas.field.FieldAttrEntity;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.detailtab.pojo.OneKeyProduceProductPojo;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * 获取关联新建表单解释的参数dto
 *
 * @author feng.zheng
 * @version v1.0
 * @date 2019/2/20 19:12
 * @since v1.0
 */
@Getter
@Setter
public class HandlerExplainBatchLinkItemDTO extends BaseDTO {

    private static final long serialVersionUID = -8130242780233818300L;

    /**
     * 关联新建表单的业务类型
     */
    @NotNull(message = "{dto.msg.handlerExplainBatchLinkItem.linkBusinessType.NotNull}")
    private Integer linkBusinessType;

    /**
     * 解释
     */
    private List<FieldAttrEntity> explainList;

    /**
     * 实体数据
     */
    private List<PaasFormDataEntityExt> paasFormDataEntityExts;

    /**
     * 解释
     */
    private PaasFormExplainEntity paasFormExplainEntity;

    /**
     * 产品数据
     */
    private List<OneKeyProduceProductPojo> productList;
    /**
     * 源业务类型 用于区分以销定购和智能补货一键采购时linkBusinessType都为产品
     */
    private Integer sourceBusinessType;
}
